package com.hmall.user.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.hmall.user.pojo.User;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.apache.ibatis.annotations.Select;

@Mapper
public interface UserMapper extends BaseMapper<User> {
    @Select("select password from tb_user where username = #{username}")
   String getpwdbyname(@Param("username") String username);
@Select("select count(*) from tb_user where username = #{username}")
    int check(String name);
@Select("select id from tb_user where username = #{username}")
    int selectidByname(String username);
}